package com.yuerlive.rainbow.api;


import com.yuerlive.rainbow.utils.RetrofitUtil;

import retrofit2.Retrofit;

/**
 * Created by xiaoyi on 2017/5/17.
 */

public class SubscribeApi {
    public SubscribeService service;

    private SubscribeApi() {
        Retrofit retrofit = RetrofitUtil.getRetrofit();
        service = retrofit.create(SubscribeService.class);
    }

    public static SubscribeApi getInstance() {
        return InnerHolder.INSTANCE;
    }

    private static class InnerHolder {
        public static final SubscribeApi INSTANCE = new SubscribeApi();
    }

}
